/*
 SGEndGameViewController.m
 Date Created: March 26, 2010
 
 Authors: Frank Lau <flaua@sfu.ca> 
          Karanvir Gill <viper1029@gmail.com>
 
 Copyright (C) 2010 Green-Power
 
 URL: http://code.google.com/p/green-power
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 3 of the License, or
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 
 $Id$
 
 */

#import <UIKit/UIKit.h>


@interface SGSummaryViewController : UIViewController {
	
	IBOutlet UILabel *totalMoneyLabel;
	IBOutlet UILabel *levelMoneyLabel;
	IBOutlet UILabel *accuracyLabel;
  IBOutlet UILabel *currentLevelLabel;
  NSUInteger totalMoney;
  NSUInteger levelMoney;
  float levelAccuracy;
  NSUInteger currentLevel;
	NSMutableArray* xValuesForProgressChart;
	NSMutableArray* yValuesForProgressChart;
	
}

@property (nonatomic,retain) IBOutlet UILabel *totalMoneyLabel;
@property (nonatomic,retain) IBOutlet UILabel *levelMoneyLabel;
@property (nonatomic,retain) IBOutlet UILabel *accuracyLabel;
@property (nonatomic,retain) IBOutlet UILabel *currentLevelLabel;


/**
 * Constructor that takes in statistics attributes to be
 * displayed at the level summary window, and also takes in
 * x and y values for the progress chart to be displayed 
 * when the user clicks the progress chart button at the 
 * level summary window 
 *
 * \param currlevel The current level
 * \param levelAccuracy The accuracy of the previous level
 * \param totalScore The total score earned so far in the game
 * \param levelScore The score earned in the previous level of the game
 * \param xValues An array of x values (level numbers) that will be displayed at the end game progress chart
 * \param yValues An array of y values (sorting accuracy for each level) that will be displayed at the end game progress chart
 * \return An instance of SGSummaryViewController with the appropriate vaules for 
 * attributes 
 */
- (SGSummaryViewController*)initWithCurrLevel:(NSUInteger)currLevel 
														withAccuracy:(float)accuracy 
														withTotalScore:(NSUInteger)totalScore 
														withLevelScore:(NSUInteger)levelScore
														withXValues:(NSMutableArray*)xValues
														withYValues:(NSMutableArray*)yValues;
/**
 *Goes to the next level when player hits Next Level button
 */
- (IBAction)goToNextLevel:(id)sender;

/**
 *Goes to the main menu when the player hits the main menu button
 */
- (IBAction)goToMainMenu:(id)sender;

/*
 *Shows progress chart
 */
- (IBAction)viewProgressChart:(id)sender;


@end
